solving angle equations